﻿namespace Cadcam7Moddel.Model
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.ComponentModel.DataAnnotations;
    [Table("Tintuc")]
    public partial class Tintuc
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int ID { get; set; }
        [Required(ErrorMessage = "Chưa nhập")]
        public string Tieude { get; set; }
        public string Hinh { get; set; }
        public string Tomtac { get; set; }
        public string Noidung { get; set; }
        public System.DateTime Ngaytao { get; set; }
        public int Luocxem { get; set; }
        public bool Hien { get; set; }
        public bool Hienhinh { get; set; }
        public bool Hienmota { get; set; }
        public int LoaitinID { get; set;}
        [ForeignKey("LoaitinID")]
        public virtual Loaitin Loaitin { get; set; }

        public string LangID { get; set; }
        [ForeignKey("LangID")]
        public virtual NgonNgu NgonNgu { get; set; }
    }

}

